import { createRouter } from 'uni-mini-router'
const router = createRouter({
	routes: [...ROUTES] // 路由表信息
})
router.beforeEach((to, from, next) => {
	// next入参 false 以取消导航
	console.log(to, 'qianto');
	console.log(from, 'qianfrom');
	// console.log(from, 'from,11');
	next(true)
})

router.afterEach((to, from) => {
	// console.log(to, 'to, 22');
	// console.log(from, 'from22');
})
export default router